<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; ?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="$webroot/soap/baidu" targetNamespace="$webroot/soap/baidu" name="Aleafs_Sem_Access">
	<wsdl:types>
		<xsd:schema targetNamespace="$webroot/soap/baidu">
			<xsd:element name="AuthHeader" type="tns:AuthHeader" />
			<xsd:complexType name="AuthHeader">
				<xsd:sequence>
					<xsd:element name="appname">
						<xsd:simpleType> 
							<xsd:restriction base="xsd:string"> 
								<xsd:enumeration value="baidu" /> 
							</xsd:restriction> 
						</xsd:simpleType> 
					</xsd:element>
					<xsd:element name="username" type="xsd:string" />
					<xsd:element name="machine" type="xsd:string" />
					<xsd:element name="nodename" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>

			<xsd:element name="ResHeader" type="tns:ResHeader" />
			<xsd:complexType name="ResHeader">
				<xsd:sequence>
					<xsd:element name="status" type="xsd:int" />
					<xsd:element name="description" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>

			<xsd:element name="AdRankRequest" type="tns:AdRankRequest" />
			<xsd:complexType name="AdRankRequest">
				<xsd:sequence>
					<xsd:element name="keyword" type="xsd:string" />
					<xsd:element name="showurl" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
					<xsd:element name="webpage" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="AdRankResponse" type="tns:AdRankResponse" />
			<xsd:complexType name="AdRankResponse">
				<xsd:sequence>
					<xsd:element name="cmatch" type="xsd:int" />
					<xsd:element name="rank" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="QKeywords" type="tns:QKeywords" />
			<xsd:complexType name="QKeywords">
				<xsd:sequence>
					<xsd:element name="keywords" type="tns:QStruct" minOccurs="0" maxOccurs="unbounded" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:complexType name="QStruct">
				<xsd:sequence>
					<xsd:element name="keywid" type="xsd:int" />
					<xsd:element name="q" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="AddKrTaskInput" type="tns:AddKrTaskInput" />
			<xsd:complexType name="AddKrTaskInput">
				<xsd:sequence>
					<xsd:element name="keywords" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="AddKrTaskOutput" type="tns:AddKrTaskOutput" />
			<xsd:complexType name="AddKrTaskOutput">
				<xsd:sequence>
					<xsd:element name="status" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="DelKrTaskInput" type="tns:DelKrTaskInput" />
			<xsd:complexType name="DelKrTaskInput">
				<xsd:sequence>
					<xsd:element name="taskid" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="DelKrTaskOutput" type="tns:DelKrTaskOutput" />
			<xsd:complexType name="DelKrTaskOutput">
				<xsd:sequence>
					<xsd:element name="status" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="KrResInput" type="tns:KrResInput" />
			<xsd:complexType name="KrResInput">
				<xsd:sequence>
					<xsd:element name="taskid" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="KrResOutput" type="tns:KrResOutput" />
			<xsd:complexType name="KrResOutput">
				<xsd:sequence>
					<xsd:element name="keywords" type="tns:KrStruct" minOccurs="0" maxOccurs="unbounded" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:complexType name="KrStruct">
				<xsd:sequence>
					<xsd:element name="keyword" type="xsd:string" />
					<xsd:element name="pv" type="xsd:int" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="KrTaskInput" type="tns:KrTaskInput" />
			<xsd:complexType name="KrTaskInput">
				<xsd:sequence>
					<xsd:element name="username" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:element name="KrTaskOutput" type="tns:KrTaskOutput" />
			<xsd:complexType name="KrTaskOutput">
				<xsd:sequence>
					<xsd:element name="keywords" type="tns:KrTaskStruct" minOccurs="0" maxOccurs="unbounded" />
				</xsd:sequence>
			</xsd:complexType>
			
			<xsd:complexType name="KrTaskStruct">
				<xsd:sequence>
					<xsd:element name="keywords" type="xsd:string" />
					<xsd:element name="taskid" type="xsd:int" />
					<xsd:element name="status" type="xsd:int" />
					<xsd:element name="addtime" type="xsd:dateTime" />
				</xsd:sequence>
			</xsd:complexType>
			
		</xsd:schema>
	</wsdl:types>

	<wsdl:message name="AuthHeader">
		<wsdl:part name="AuthHeader" element="tns:AuthHeader" ></wsdl:part>
	</wsdl:message>

	<wsdl:message name="ResHeader">
		<wsdl:part name="ResHeader" element="tns:ResHeader" ></wsdl:part>
	</wsdl:message>

	<wsdl:message name="AdRankRequest">
		<wsdl:part name="AdRankRequest" element="tns:AdRankRequest" ></wsdl:part>
	</wsdl:message>

	<wsdl:message name="AdRankResponse">
		<wsdl:part name="AdRankResponse" element="tns:AdRankResponse" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="QKeywords">
		<wsdl:part name="QKeywords" element="tns:QKeywords" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="AddKrTaskInput">
		<wsdl:part name="AddKrTaskInput" element="tns:AddKrTaskInput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="AddKrTaskOutput">
		<wsdl:part name="AddKrTaskOutput" element="tns:AddKrTaskOutput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="DelKrTaskInput">
		<wsdl:part name="DelKrTaskInput" element="tns:DelKrTaskInput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="DelKrTaskOutput">
		<wsdl:part name="DelKrTaskOutput" element="tns:DelKrTaskOutput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="KrResInput">
		<wsdl:part name="KrResInput" element="tns:KrResInput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="KrResOutput">
		<wsdl:part name="KrResOutput" element="tns:KrResOutput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="KrTaskInput">
		<wsdl:part name="KrTaskInput" element="tns:KrTaskInput" ></wsdl:part>
	</wsdl:message>
	
	<wsdl:message name="KrTaskOutput">
		<wsdl:part name="KrTaskOutput" element="tns:KrTaskOutput" ></wsdl:part>
	</wsdl:message>

	<wsdl:portType name="BaiduAd">
		<wsdl:operation name="adrank">
			<wsdl:input message="tns:AdRankRequest" ></wsdl:input>
			<wsdl:output message="tns:AdRankResponse" ></wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="keyquality">
			<wsdl:input message="tns:QKeywords" ></wsdl:input>
			<wsdl:output message="tns:QKeywords" ></wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="addkrtask">
			<wsdl:input message="tns:AddKrTaskInput" ></wsdl:input>
			<wsdl:output message="tns:AddKrTaskOutput" ></wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="delkrtask">
			<wsdl:input message="tns:DelKrTaskInput" ></wsdl:input>
			<wsdl:output message="tns:DelKrTaskOutput" ></wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getkrres">
			<wsdl:input message="tns:KrResInput" ></wsdl:input>
			<wsdl:output message="tns:KrResOutput" ></wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getkrtask">
			<wsdl:input message="tns:KrTaskInput" ></wsdl:input>
			<wsdl:output message="tns:KrTaskOutput" ></wsdl:output>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="SoapBinding" type="tns:BaiduAd">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="adrank">
			<soap:operation soapAction="$webroot/soap/baidu/adrank" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="keyquality">
			<soap:operation soapAction="$webroot/soap/baidu/keyquality" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="addkrtask">
			<soap:operation soapAction="$webroot/soap/baidu/addkrtask" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="delkrtask">
			<soap:operation soapAction="$webroot/soap/baidu/delkrtask" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getkrtask">
			<soap:operation soapAction="$webroot/soap/baidu/getkrtask" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getkrres">
			<soap:operation soapAction="$webroot/soap/baidu/getkrres" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="BaiduService">
		<wsdl:port binding="tns:SoapBinding" name="BaiduService">
			<soap:address location="$webroot/soap/baidu" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
<!--COMPLETE-->